﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GiMess
{
    public partial class RequestHandleForm : Form
    {
        string requestingUser;
        public RequestHandleForm()
        {
            InitializeComponent();
        }

        public RequestHandleForm(string username)
        {
            InitializeComponent();
            messageLabel.Text = username + " would like to be your friend.";
            requestingUser = username;
        }

        private void finishButton_Click(object sender, EventArgs e)
        {
            if (allowRadio.Checked)
                GiNetClient.Instance.AddRequestResponse(requestingUser, "true");
            else
                GiNetClient.Instance.AddRequestResponse(requestingUser, "false");

            this.Close();
        }


    }
}
